package com.yupi.yoj.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yupi.yoj.model.dto.comment.CommentQueryRequest;
import com.yupi.yoj.model.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yupi.yoj.model.vo.CommentVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author 46411
* @description 针对表【comment(题目评论)】的数据库操作Service
* @createDate 2024-10-01 03:10:27
*/
public interface CommentService extends IService<Comment> {

    void validComment(Comment comment, boolean b);

    CommentVO getCommentVO(Comment comment);
    List<CommentVO> getCommentVOList(List<Comment> comment);

    Page<Comment> searchFromEs(CommentQueryRequest commentQueryRequest);

    Page<CommentVO> getCommentVOPage(Page<Comment> commentPage, HttpServletRequest request);
}
